<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
    <head>
        <title><!--考勤工时统计--></title>
        <meta charset="utf-8">
        <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
    	<link rel="stylesheet" href="css/ui-box.css">
        <link rel="stylesheet" href="css/ui-base.css">
		<link rel="stylesheet" href="css/project/style.css">
		<link rel="stylesheet" href="index/css/main.css">
		<script src="js/zy_control.js"></script>
        <script src="js/zy_click.js"></script>
		<script src="js/main.js"></script>
		<script src="js/talkingdata.js"></script>
		<style>
			.footer_c{ color:#999}
		</style>
		
    </head>
    <body class="um-vp c-bf"  ontouchstart>
        <div id="page_0" class="up ub ub-ver" tabindex="0">
            <!--header开始-->
            <div id="header" class="uh t-wh ub c-blu">
            	<div class="umw2 ub ub-ac ub-pc" ontouchstart="zy_touch('')" onclick="winClose();">
	                	<div class="uwh-tBtn ub-img t-btn-a1"></div>
	            </div>
                <h1 class="ut ub-f1 ulev-3 ut-s tx-c flight_c_top"   tabindex="0"  >工时统计</h1>
				<div class="umw2 ub ub-ac ub-pc" ontouchstart="zy_touch('btn-act')" onclick="">
            		<!--插入按钮控件-->
				</div>
            </div>
            <!--header结束--><!--content开始-->
            <div id="content" class="ub-f1 tx-l appCan ub-img4">
                
            </div>
            <!--content结束-->
			<!--footer-->
			<div id="footer" class="uh t-wh ub c-blu">
            	<div class="umw2 ub ub-ac ub-pc" ontouchstart="zy_touch('')" id="startpage">
	                	
	            </div>
                <h1 class="ut ub-f1 ulev-3 ut-s tx-c flight_c_top"   tabindex="0" id="footer_h1"  >&nbsp</h1>
				<div class="umw2 ub ub-ac ub-pc" ontouchstart="zy_touch('btn-act')"  id="endpage">
            		
				</div>
            </div>
        </div>
    </body>
    <script>
    	zy_init();
        window.uexOnload = function(type){
            if (!type) {
                zy_con("content", "attendance_working_hours_content.html", 0, $$("header").offsetHeight);
				IC.talkingDataCount("考勤管理","0018");
            }
			window.onorientationchange=window.onresize=function()
			{
				zy_resize("content",0,$$("header").offsetHeight);				
			}
			var TotalCount= localStorage.getItem("TotalCount");
			var member_page= localStorage.getItem("member_page");
			$$("footer_h1").innerHTML =member_page+ '/'+TotalCount;
			$$("startpage").innerHTML ='<div class="uwh-tBtn ub-img t-btn-a1"  onclick="LoadDataS(1);"></div><div  onclick="LoadDataS(1);">上一位</div>'
			$$("endpage").innerHTML ='<div  onclick="LoadDataS(2);">下一位</div><div class="uwh-tBtn ub-img t-btn-a2"  onclick="LoadDataS(2);"></div>'
			if(parseInt(member_page)<=1)
			{
				$$("startpage").innerHTML ='<div class="uwh-tBtn ub-img t-btn-a1-1" ></div><div class="footer_c">上一位</div>'
			}
			
			if(parseInt(member_page)>=parseInt(TotalCount))
			{
				$$("endpage").innerHTML ='<div  class="footer_c">下一位</div><div class="uwh-tBtn ub-img t-btn-a2-1"></div>'
			}
        }
		function LoadDataS(type){
			IC.talkingDataCount("考勤管理","0018");
			var TotalCount= localStorage.getItem("TotalCount");
			var startmember_id=localStorage.getItem("startmember_id");
			var endmember_id=localStorage.getItem("endmember_id");
			var member_page=localStorage.getItem("member_page");
			var startpage = parseInt(member_page) - 1
			var endpage = parseInt(member_page) + 1

			$$("startpage").innerHTML ='<div class="uwh-tBtn ub-img t-btn-a1"  onclick="LoadDataS(1);"></div><div  onclick="LoadDataS(1);">上一位</div>'
			$$("endpage").innerHTML ='<div  onclick="LoadDataS(2);">下一位</div><div class="uwh-tBtn ub-img t-btn-a2"  onclick="LoadDataS(2);"></div>'
			if(type==1)
			{
				$$("footer_h1").innerHTML =startpage+ '/'+TotalCount;
				if(parseInt(startpage)<=1)
				{
					$$("startpage").innerHTML ='<div class="uwh-tBtn ub-img t-btn-a1-1" ></div><div class="footer_c">上一位</div>'
				}
				ueppscript("attendance_management","content","LoadDetail('"+startmember_id+"','"+startpage+"','1')");
			}
			else
			{
				$$("footer_h1").innerHTML =endpage+ '/'+TotalCount;
				if(parseInt(endpage)>=parseInt(TotalCount))
				{
					$$("endpage").innerHTML ='<div  class="footer_c">下一位</div><div class="uwh-tBtn ub-img t-btn-a2-1"></div>'
				}
				ueppscript("attendance_management","content","LoadDetail('"+endmember_id+"','"+endpage+"','1')");	
			}
		}
	
    </script>
</html>